package com.starlink.model.dtomapper;

import com.starlink.model.domain.MallBooksCategoryDO;
import com.starlink.model.request.MallBooksCategoryRequest;
import com.starlink.model.vo.MallBooksCategoryVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface MallBooksCategoryDtoMapper {

    MallBooksCategoryDtoMapper INSTANCE = Mappers.getMapper(MallBooksCategoryDtoMapper.class);

    /**
    * DO to VO
    * @param mallBooksCategoryDO
    * @return
    */
    MallBooksCategoryVO do2VO(MallBooksCategoryDO mallBooksCategoryDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    MallBooksCategoryDO request2DO(MallBooksCategoryRequest request);
}
